package chapter18;

import java.io.PrintStream;

public class Chapter18_8 {
    public static void main(String[] args) {
        PrintStream out = System.out;

        Integer integer = Integer.valueOf(100);

        // 调用构造函数
        Integer a = new Integer(100);
        Integer b = new Integer(100);

        //调用Integer.valueOf()
        Integer c = 100;
        Integer d = 100;

        Integer e = 200;
        Integer f = 200;

        System.out.println(a == b);
        System.out.println(c == d);
        System.out.println(e == f);
    }
}
